package com.red.star.macalline.data.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import javax.persistence.Id;
import java.util.List;

/**
 * @author nofish.yan@gmail.com
 * @date 2018/2/5.
 * 离线消息
 */
@Data
@Document(collection = "chat_offline_message")
public class OfflineMessage {

    @Id
    private String id;

    /**
     * 离线消息所有者
     */
    @Field(value = "fans_id")
    private String fansId;

    /**
     * 离线消息
     */
    private List<ChatMessage> messages;

}
